package com.yun.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class TestController2 {

    @GetMapping(value = "/haha")
    public String haha(){
        try {
            System.out.println("hahah");
            return "123";
        }catch (Exception e){
            e.printStackTrace();
        }
      return "12";
    }

    @GetMapping("/unauth")

    public String unauth() {
        return "unauth";
    }
}
